package com.easyattendance.model;

import java.io.Serializable;
import java.util.Date;

public class AttendanceTakenByPK implements Serializable{
	
	 private Date attendance_date;
	 private String class_id;
	 
	public Date getAttendance_date() {
		return attendance_date;
	}
	public void setAttendance_date(Date attendance_date) {
		this.attendance_date = attendance_date;
	}
	public String getClass_id() {
		return class_id;
	}
	public void setClass_id(String class_id) {
		this.class_id = class_id;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((attendance_date == null) ? 0 : attendance_date.hashCode());
		result = prime * result
				+ ((class_id == null) ? 0 : class_id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AttendanceTakenByPK other = (AttendanceTakenByPK) obj;
		if (attendance_date == null) {
			if (other.attendance_date != null)
				return false;
		} else if (!attendance_date.equals(other.attendance_date))
			return false;
		if (class_id == null) {
			if (other.class_id != null)
				return false;
		} else if (!class_id.equals(other.class_id))
			return false;
		return true;
	}
	 
	 
	 
}
